package com.atguigu.stgy.model.enums;

import com.atguigu.stgy.model.base.BaseTypeEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum LabelTypeEnum implements BaseTypeEnum {
    APARTMENT(1, "公寓"),
    ROOM(2, "房间");
    @EnumValue //mp注解，表示接受数据库数据 使用枚举类对象的 type属性值接受
    @JsonValue  //枚举类使用标注的属性 取值返回
    private Integer type;
    private String  name;


    private LabelTypeEnum(Integer type, String name){
        this.type = type;
        this.name = name;
    }

}
